home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Applications / Conic Sections 0.9.2 / Include / ConicContent.h < prev    next >
Encoding:
Text File  |  1997-05-31  |  997 b   |  42 lines  |  [TEXT/CWIE]

  1. //Copyright (c) 1997 Aidan Cully
  2. //All rights reserved
  3.  
  4. #ifndef __CONICCONTENT_H
  5. #define __CONICCONTENT_H
  6.  
  7. #include "Conic.h"
  8. #include "Angle.h"
  9. #include "LTypes.h"
  10. #include "CLLayout.h"
  11. #include "CLReceiver.h"
  12. #include "DocContent.h"
  13. #include "CLPulsar.h"
  14.  
  15. class TConicContent:
  16.     public TDocContent,
  17.     public MPulsar
  18. {
  19. protected:
  20.     p2d P3dT2d( p3d point, Rect drawRect );
  21.     SInt8 DrawConic( TDrawSlate* );
  22.     SInt8 DrawPlane( TDrawSlate* );
  23.     SInt8 DrawAxis( TDrawSlate* );
  24.     SInt8 DrawPlaneAxis( TDrawSlate* );
  25.     float d, D, S;
  26.     TConic *mConic;
  27.     CursHandle mNormCurs, mShifCurs, mOptCurs;
  28.     CursPtr mPresCurs;
  29.     int mState;
  30.     void HandleOptMouse();
  31.     void HandleNormMouse( BOOLEAN );
  32.     Boolean HandleMouseSelf( TMouseButtonEvent* );
  33.     virtual void HandleMouseEnter();
  34.     virtual void HandleMouseExit();
  35. public:
  36.     TConicContent( TLayoutBranch*, MActionHandler*, Boolean, TConic*, TPlane*, float, float );
  37.     TAngle mTheta, mPhi;
  38.     virtual void DrawSelf( TDrawSlate* );
  39.     virtual void Pulse( const TEvent* );
  40. };
  41.  
  42. #endif